package yamen.bdwm.datastruct;

import yamen.bdwm.datastruct.MoreAdapter.onMoreClicked;
import yamen.bdwm.datastruct.MoreAdapter.onMoreOver;

public abstract class WmMoreList extends WmList {
	protected abstract void loadForNumber(final onMoreOver l);
	public void CreateAdapter(int tag,int resource)
	{
		if(!adapterList.containsKey(tag))
		{
			MoreAdapter adapter=new MoreAdapter(resource, this,new onMoreClicked() 
			{
				public void Load(onMoreOver l) {
					
					loadForNumber(l);
				}

				public boolean ShowMore() {
					// TODO Auto-generated method stub
					return true;
				}
			});
			adapterList.put(tag, adapter);
		}
		((MoreAdapter)adapterList.get(tag)).ShowMore();
	}
}
